#pragma once
#include "utility.h"
#include "TimeUI.h"
#include "ComboExtend.h"

class CAlterDutyDlg :
	public WindowImplBase
{
public:
	CAlterDutyDlg(CListUI* pEmpList, stDuty* pDuty);
	virtual ~CAlterDutyDlg();
	LPCTSTR GetWindowClassName() const { return _T("CAlterDutyDlg"); }
	virtual CDuiString GetSkinFile() { return _T("AddDuty.xml"); }
	virtual CDuiString GetSkinFolder() { return  _T("skin"); }
	virtual void InitWindow();
	virtual CControlUI* CreateControl(LPCTSTR pstrClass);
	virtual LRESULT OnNcActivate(UINT /*uMsg*/, WPARAM wParam, LPARAM /*lParam*/, BOOL& bHandled);

	DUI_DECLARE_MESSAGE_MAP()
	void OnOKBtnClick(TNotifyUI& msg);
public:
	stDuty*		m_pDuty;
	CListUI*	m_pEmpList;
	CComboExUI*	m_pCboName;
	CComboExUI*	m_pCboArea;
	CTimeUI*	m_pTimeBegin;
	CTimeUI*	m_pTimeEnd;
	CLabelUI*	m_pLabTitle = nullptr;
};

